<template>
  <div class="result-page" @click="goDetail">
    <router-view />
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
function goDetail() {
  router.push("/start/detail");
}
</script>

<style scoped>
.result-page {
  position: fixed;
  top: 0;
  margin-left: 10px;
  width: calc(100vw - 40px); /* 横向铺满剩余可视区域 */
  height: 100vh;
  background-color: #fafafa;
  /* background-image: url("/result.png"); */
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto; /* 宽度撑满容器 */
  z-index: 1;
  overflow-y: auto; /* 纵向滚动 */
  overflow-x: hidden; /* 横向不滚动 */
}

/* 添加一个内部容器来创建滚动区域 */
.result-page::before {
  content: "";
  display: block;
  width: 91.5vw;
  height: 110vh; /* 让背景图片有视口高度可以滚动 */
  background-image: url("/result.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}
</style>
